import request from '@/utils/request.js'
///drink/intake/list
export function getIntakeList(query) {
  return request({
    url: '/drink/intake/list',
    method: 'get',
    params: query
  })
}

///drink/intake/remove/{ids}
export function removeIntake(ids) {
  return request({
    url: `/drink/intake/remove/${ids}`,
    method: 'get',
  })
}
///drink/intake/add
export function addIntake(data) {
  return request({
    url: '/drink/intake/add',
    method: 'post',
    data
  })
}
///drink/intake/edit
export function editIntake(data) {
  return request({
    url: '/drink/intake/edit',
    method: 'post',
    data
  })
}